home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / t_os / igo / src / ex_egb.c < prev    next >
C/C++ Source or Header  |  1993-07-08  |  888b  |  48 lines

  1. /* 
  2.     TOWNS囲碁棋譜記録プログラム
  3.                                           1991/12/11  久保田俊也
  4.  
  5.     93/01/02  GNUC からHIGHC 移行のため作成
  6.  
  7.  
  8. */
  9. #include <EGB.H>
  10.  
  11. extern char para[64] ;
  12.  
  13. int EGB_setPalette( char *work, int col_no, int blue, int red, int green)
  14. {
  15.  
  16.     DWORD(para + 0) = 1;
  17.     DWORD(para + 4) = col_no;
  18.     BYTE(para + 8) = blue;
  19.     BYTE(para + 9) = red;
  20.     BYTE(para + 10) = green;
  21.     return ( EGB_palette( work, 1, para ));
  22.     
  23. }
  24.  
  25. int EGB_box( char *work, int x1, int y1, int x2, int y2 )
  26. {
  27.  
  28.     WORD(para + 0) = x1;
  29.     WORD(para + 2) = y1;
  30.     WORD(para + 4) = x2;
  31.     WORD(para + 6) = y2;
  32.     return ( EGB_rectangle( work, para ));
  33.  
  34. }
  35.  
  36. int EGB_singleLine( char *work, int x1, int y1, int x2, int y2 )
  37. {
  38.  
  39.     WORD(para + 0) = 2;
  40.     WORD(para + 2) = x1;
  41.     WORD(para + 4) = y1;
  42.     WORD(para + 6) = x2;
  43.     WORD(para + 8) = y2;
  44.     return ( EGB_connect( work, para ));
  45.  
  46. }
  47.  
  48.